package com.ftg.mall.controller;

import com.ftg.mall.base.entity.pms.Brand;
import com.ftg.mall.base.util.tooltips.ResBean;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

import java.io.Serializable;

/**
 * <p>
 * 品牌表 前端控制器
 * </p>
 *
 * @author kangjx
 * @since 2022-11-18
 */
@RestController
@RequestMapping("/pms/brand")
public class BrandController {

    @GetMapping("/pageList")
    public ResBean pageList(int page,int limit,String name){

        return null;
    }

    @GetMapping("/pageListWithProduct")
    public ResBean pageListWithProduct(int page,int limit,int id){
        //商品表的
        return null;
    }

    @PostMapping("/saveBrand")
    public ResBean saveBrand(@RequestBody Brand brand){

        return null;
    }


    @PutMapping("/oneBrand/{id}")
    public ResBean updateBrand(String id){

        return null;
    }

    @PostMapping("/updateBrand")
    public ResBean updateBrand(@RequestBody Brand brand){

        return null;
    }

    @DeleteMapping("/deleteBrand/{id}")
    public ResBean deleteBrand(@PathVariable Serializable id){
        //应该对商品品牌进行的逻辑删除
        return null;


    }

}
